﻿using UnityEngine;

namespace winS.Unity.Rendering
{
    /// <summary>
    /// 默认固定宽高比渲染执行器
    /// </summary>
    public class DefaultFixedAspectRenderExecutor : IFixedAspectRenderExecutor
    {
        public void Execute(Rect rect)
        {
            Camera camera = Camera.main;
            if (camera == null) return;
            camera.rect = rect;
        }
    }
}
